package com.wn.cl.park.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author yellow docker
 * @since 2025-03-11
 */
@Getter
@Setter
  @ApiModel(value = "Users对象", description = "")
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("用户ID，主键，自动递增")
      @TableId
      private Long id;

      @ApiModelProperty("用户名，必须唯一")
      private String username;

      @ApiModelProperty("密码，应加密存储")
      private String password;

      @ApiModelProperty("邮箱地址，必须唯一")
      private String email;

      @ApiModelProperty("联系电话")
      private String phoneNumber;

      @ApiModelProperty("创建时间，默认为当前时间")
      private LocalDateTime createdAt;

      @ApiModelProperty("更新时间，默认为当前时间且在更新时自动修改")
      private LocalDateTime updatedAt;

      @ApiModelProperty("头像url")
      private String avatarUrl;


}
